const Koa = require('Koa');
const app = new Koa();
const views = require('koa-views');
const {resolve} = require('path');

app.use(views(resolve(__dirname, './views'),{
    extension: 'pug',
}));
app.use(async (ctx, next) =>{
    await ctx.render('index', {
        you: 'koa',
        me: 'express',
    })
});
app.listen(4455);